#ifndef SplitPieChart_H
#define SplitPieChart_H

#include <QWidget>
#include <QPaintEvent>
#include "SplitSettingWidget.h"
#include "nightcharts.h"
#include "Common.h"

class SplitPieChart : public QWidget
{
	Q_OBJECT
public:
	explicit SplitPieChart(QWidget *parent = 0);
	void addItem(QString name, QColor color, float value);
	
	void setResult(SplitResult result);
	void clear();
protected:
	virtual void paintEvent(QPaintEvent * e);

private:
	Nightcharts _chart;	
};

#endif // SplitPieChart_H
